#include "LvlOne.h"
#include "RegTest.h"




int main()
{
	int i;
	printf ("Enter the problem number \n");
	printf ("Enter 0 for running reg test \n");
	scanf("%d", &i);

	switch(i)
	{
	case 0:
		reg_test_total();
		break;
	case 1:
		printf ("The sum of all the multiples of 3 or 5 below 1000 is %d \n"
			, sum_multiple_three_and_five(1000) );
		break;
	case 2:
		printf ("The sum of even-valued Fibonacci sequence whose values do not exceed four million is %d \n"
			, sum_even_fibonacci(4000000) );
		break;
	case 3:
		printf ("Largest prime factor is %d \n"
			, largest_divisor(600851475143) );
		break;
	case 4: 
		printf ("The largest palindrome made from the product of two 3-digit numbers is %d \n"
			, find_largest_palindromic(3) );
		break;
	case 5:
		printf ("The smallest positive number that is evenly divisible by all of the numbers from 1 to 20 %d \n"
			, divisible_by_range_of_numbers(20));
	case 6: 
		printf ("Sum square difference from 1 to 100 is %d \n"
			, sum_sqr_diff(1, 100));
	case 7:
		printf ("The 10 001st prime number is %d \n"
			, get_ith_prime_number(10001));
		
	default:
		break;
	}

	system("pause");
	return 0;
}